package com.hebeu.xwl.vo;

import java.util.List;

public class PageVo<T> {

    private Integer recordOfPage;    //每页显示数量         我指定
    private Integer page;           //页码                 用户指定
    private Integer pageCount;      //总页数               ((recordCount-1)/recordOfPage)+1
    private Integer recordCount;    //总记录数             select count(*)
    private List<T> list;           //每页的记录数据        limit (page-1)*recordOfPage , recordOfPage

    public PageVo() {
    }

    @Override
    public String toString() {
        return "PageVo{" +
                "recordOfPage=" + recordOfPage +
                ", page=" + page +
                ", pageCount=" + pageCount +
                ", recordCount=" + recordCount +
                ", list=" + list +
                '}';
    }

    public Integer getRecordOfPage() {
        return recordOfPage;
    }

    public void setRecordOfPage(Integer recordOfPage) {
        this.recordOfPage = recordOfPage;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getPageCount() {
        return pageCount;
    }

    public void setPageCount(Integer pageCount) {
        this.pageCount = pageCount;
    }

    public Integer getRecordCount() {
        return recordCount;
    }

    public void setRecordCount(Integer recordCount) {
        this.recordCount = recordCount;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }
}
